<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>断电</title>
		<script>
		 var ar=["sas","bbb","dog","cat"];
		 var c=0;
		 document.write(ar);
		 for(var i=0;i<ar.length;i++){
			 if(ar[i].indexOf("a")>=0||ar[i].indexOf("A")>=0)
			  c++;
		 }
		 document.write("有几个包含a?"+c);
		</script>
	</head>
	<body>
	</body>
</html>
